package com.edu.hre.struts.form.recruit;

import java.io.Serializable;


public class CandidateForm implements Serializable, Comparable<CandidateForm> {
	
	/**
	 * 
	 */
	private static final long serialVersionUID = 8524711320183647898L;
	private String id = "";
	private String vacId = "";
	private String name = "";	
	private String email = "";
	private String contactNumber = "";
	private double eduScore;
	private double langScore;
	private double skillScore;
	private double licenseScore;
	private double score;
	
	private boolean isSelected = false;

	public CandidateForm() {
	
	}

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public boolean isSelected() {
		return isSelected;
	}

	public void setSelected(boolean isSelected) {
		this.isSelected = isSelected;
	}
	
	public boolean getIsSelected() {
		return isSelected;
	}

	public void setIsSelected(boolean isSelected) {
		this.isSelected = isSelected;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getEmail() {
		return email;
	}

	public void setEmail(String email) {
		this.email = email;
	}

	public String getContactNumber() {
		return contactNumber;
	}

	public void setContactNumber(String contactNumber) {
		this.contactNumber = contactNumber;
	}

	public double getEduScore() {
		return eduScore;
	}

	public void setEduScore(double eduScore) {
		this.eduScore = eduScore;
	}

	public double getLangScore() {
		return langScore;
	}

	public void setLangScore(double langScore) {
		this.langScore = langScore;
	}

	public double getSkillScore() {
		return skillScore;
	}

	public void setSkillScore(double skillScore) {
		this.skillScore = skillScore;
	}

	public double getLicenseScore() {
		return licenseScore;
	}

	public void setLicenseScore(double licenseScore) {
		this.licenseScore = licenseScore;
	}

	public double getScore() {
		return score;
	}

	public void setScore(double score) {
		this.score = score;
	}

	public int compareTo(CandidateForm arg0) {
		if (this.score > arg0.score) {
			return -1;
		}
		if (this.score < arg0.score) {
			return 1;
		}
		return 0;
	}

	public String getVacId() {
		return vacId;
	}

	public void setVacId(String vacId) {
		this.vacId = vacId;
	}
}
